/*
 * Property.h
 *
 *  Created on: Mar 24, 2011
 *      Author: kimi
 */
#include <stdlib.h>
#include <string.h>
#include <iostream>

#ifndef PROPERTY_H_
#define PROPERTY_H_

using namespace std;

class Property {

public:
	Property();
	Property(string encodedLine);
	Property(string key, string value);
	string toString();
	bool isInvalid();
	Property & operator=(const Property &property);
	//~Property();
	string getValue();

	void setValue(string value);

	string getKey();
	void invalidate();
private:
	string key;
	string value;
	bool valid;
};

#endif /* PROPERTY_H_ */
